-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add PowerShell completion file #1826
Conversation
@Enselic The file extension needs to be |
@rashil2000 Sorry to mess up the PR, I thought I knew what I was doing, but now CI fails. Any chance you can take over, since you know what needs to be done? My goal was to package the completion file in the tar.gzs and .zips that our CI pipeline build. You can download CI artifacts here to confirm that the file is included and usable: https://github.com/sharkdp/bat/actions/runs/1174961314. (But of course the link is different for each CI run.) We also build .debs, but I didn't touch those since I don't know the proper path to put it at. It possibly does not make sense to add it there at all. |
The CI was failing because the file |
Thanks! I can confirm that Can you also add an entry about this to (I'm setting Approved already now) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you
Maybe it should also be mentioned how to use the PowerShell completion file? |
Completion files are usually dot-sourced. For example you can put this line in your . /file/path/to/_bat.ps1 |
I'm aware, I was just a bit surprised because this does not seem to be mentioned anywhere on the project site. Although it could arguably be considered part of the install instructions, in my opinion. For what's it worth, it could also be considered presumed knowledge for a PowerShell user, but still.. Speaking of presumed knowledge, why does the name of that file start with an underscore character ( |
It does seem like a convention. I've seen it in many places. |
No description provided.